import getpass
from ConfigParser import SafeConfigParser

import ttutils
from tpvrserver import TpvrFuncs

def main():
    print "=================================="
    print "HyperionTV Setup"
    print "=================================="
    print
    userid = raw_input("Please enter titantv.com UID:  ")
    password = getpass.getpass("Please enter titantv.com PASSWORD:  ")
    uuid = ttutils.getUUID(userid, password)

    t = TpvrFuncs()
    t.getConf()
    t.user_info['uuid'] = uuid
    t.setConf()

    print "Done!"

if __name__ == "__main__":
    main()
